﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UnitSpawner : MonoBehaviour
{
    public GameObject m_UnitPrefab;
    public int m_Number;

    void Start()
    {
        for (int i = 0; i < m_Number; i++)
        {
            Instantiate(m_UnitPrefab, new Vector3(Random.Range(-10, 10), 0, 0), Quaternion.identity);
        }                
    }

    private void Update()
    {
        
    }

}
